package com.hyjx.framework.component.fastdfs;

import com.hyjx.framework.common.util.StringHelper;
import com.hyjx.framework.orm.IBaseModel;
import org.apache.commons.lang3.StringUtils;

/**
 *
 */
public class FastDFSModel implements IBaseModel{
    private String id;           //主键
    private String file_name;    //文件名
    private String file_size;    //文件大小
    private String file_type;    //文件类型
    private String fdfs_path;    //fdfs路径
    private String upload_time;  //上传时间
    private String uploader;     //上传者
    private String business_id;  //业务ID
    private String visit_url;    //文件访问URL
    private String group_name;   //group名称

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFile_name() {
        return file_name;
    }

    public void setFile_name(String file_name) {
        this.file_name = file_name;
    }

    public String getFile_size() {
        return file_size;
    }

    public void setFile_size(String file_size) {
        this.file_size = file_size;
    }

    public String getFile_type() {
        return file_type;
    }

    public void setFile_type(String file_type) {
        this.file_type = file_type;
    }

    public String getFdfs_path() {
        return fdfs_path;
    }

    public void setFdfs_path(String fdfs_path) {
        this.fdfs_path = fdfs_path;
    }

    public String getUpload_time() {
        if (StringUtils.isNotEmpty(upload_time)) {
            upload_time = StringHelper.getDateTime();
        }
        return upload_time;
    }

    public void setUpload_time(String upload_time) {
        this.upload_time = upload_time;
    }

    public String getUploader() {
        return uploader;
    }

    public void setUploader(String uploader) {
        this.uploader = uploader;
    }

    public String getBusiness_id() {
        return business_id;
    }

    public void setBusiness_id(String business_id) {
        this.business_id = business_id;
    }

    public String getVisit_url() {
        return visit_url;
    }

    public void setVisit_url(String visit_url) {
        this.visit_url = visit_url;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name;
    }
    
    @Override
    public String getModuleName() {
        return "com.hyjx.framework.component.fastdfs";
    }
}